package com.gouda.temporary.utils;

public class StringCompare {

	public boolean Compare(String par,String str){
		String [] s = str.split(",");
		String [] p = par.split(",");
		boolean flag = false;
		for(int j=0;j<p.length;j++){
			for(int i=0;i<s.length;i++){
				if(s[i].equals(p[j])){
					flag = true;
					break;
				}else{
					flag = false;
				}
			}
			if(flag=true){
				break;
			}
		}
		return flag;
	}
	public boolean Com(String par,String str){
		String [] s = str.split(",");
		String  p = ","+par+",";
		boolean flag = false;
			for(int i=0;i<s.length;i++){
				if(p.indexOf(","+s[i].toString()+",")>=0){
					flag = true;
					break;
				}else{
					flag = false;
				}
		}
		return flag;
	}
	
}
